<template>
    <div class="app-container content">
        <el-row>
            <el-col :span="20">
                <el-form ref="queryRef" label-width="80px" label-position="left">
                    <el-form-item label="版本号">{{ route.query.versionCode }}</el-form-item>
                </el-form>
            </el-col>
            <el-col :span="4" style="display:flex;justify-content:right">
                <el-button style="" type="primary" icon="Edit" @click="handleExport">导出</el-button>
            </el-col>
        </el-row>
        <el-divider />

        <el-form :model="queryParams" ref="queryRef" :inline="true" label-width="80px" v-if="!isY02">
            <div v-if="isShow">
                <el-form-item label="省" prop="province">
                    <el-select v-model="queryParams.province" placeholder="请选择省" @change="chooseProvince" clearable
                        value-key="id">
                        <el-option v-for="item in provinceData" :key="item.id" :label="item.name" :value="item">
                        </el-option>
                    </el-select>
                </el-form-item>
                <el-form-item label="市" prop="city">
                    <el-select v-model="queryParams.city" placeholder="请选择市" @change="chooseCity" clearable value-key="id">
                        <el-option v-for="item in cityData" :key="item.id" :label="item.name" :value="item">
                        </el-option>
                    </el-select>
                </el-form-item>
                <el-form-item label="区/县" prop="county">
                    <el-select v-model="queryParams.county" placeholder="请选择区/县" @change="chooseCounty" clearable
                        value-key="id">
                        <el-option v-for="item in areaData" :key="item.id" :label="item.name" :value="item">
                        </el-option>
                    </el-select>
                </el-form-item>
            </div>
            <el-form-item label="关键字" prop="keyword">
                <el-input v-model="queryParams.keyword" placeholder="请输入关键字" clearable />
            </el-form-item>
            <el-form-item style="margin-left: 40px;">
                <el-button type="primary" @click="handleQuery">搜索</el-button>
                <el-button @click="resetQuery">重置</el-button>
            </el-form-item>
        </el-form>

        <template v-if="!isY02">
            <el-table v-loading="loading" ref="tableRef" style="width: 100%" :data="dataList" stripe
                :header-cell-class-name="must">
                <el-table-column v-for="item in dataTitle" :label="item.label" align="center" :prop="item.prop"
                    show-overflow-tooltip min-width="120">
                    <template #default="scope">
                        <span v-if="item.fieldType == 'NORMAL'">{{ scope.row[item.prop] }}</span>
                        <span
                            v-if="item.fieldType != 'NORMAL' && (!scope.row[item.prop] || scope.row[item.prop].length == 0)"></span>
                        <el-button type="text"
                            v-if="item.fieldType != 'NORMAL' && scope.row[item.prop] && scope.row[item.prop].length == 1"
                            @click="handleDownload(scope.row[item.prop][0].attachId)">{{ scope.row[item.prop][0].attachName
                            }}</el-button>
                        <el-button type="text"
                            v-if="item.fieldType != 'NORMAL' && scope.row[item.prop] && scope.row[item.prop].length > 1"
                            @click="handleDownloads(scope.row[item.prop], item.label)"><el-icon>
                                <More />
                            </el-icon></el-button>
                    </template>
                </el-table-column>
            </el-table>
            <pagination v-show="total > 0" :total="total" v-model:page="queryParams.page" v-model:limit="queryParams.rows"
                @pagination="getList" />
        </template>

        <!-- 钻孔查看 -->
        <template v-if="isY02" class="tableBorder">
            <el-tabs v-model="activeName" type="card" @tab-click="handleClick">
                <el-tab-pane label="Y01单孔标准化数据总览" name="Y01">
                    <table align="center" style="width: 100%;border-collapse: collapse;">
                        <tr>
                            <th align="center" colspan="5">文件信息</th>
                        </tr>
                        <tr>
                            <td style="width: 150px;" align="center" valign="middle">序号</td>
                            <td align="center" valign="middle">文件形式</td>
                            <td align="center" valign="middle">文件内容</td>
                            <td align="center" valign="middle">是否存在</td>
                            <td align="center" valign="middle">文件名</td>
                        </tr>
                        <tr>
                            <td align="center" valign="middle">1</td>
                            <td align="center" valign="middle">Excel文件</td>
                            <td align="center" valign="middle">钻孔标准化信息</td>
                            <td align="center" valign="middle">{{ formY01.drillStaInfoExist }}</td>
                            <td align="center" valign="middle">{{ formY01.drillStaInfoName }}</td>
                        </tr>
                        <tr>
                            <td align="center" valign="middle">2</td>
                            <td align="center" valign="middle">图像文件</td>
                            <td align="center" valign="middle">审查或备案证明截图</td>
                            <td align="center" valign="middle">{{ formY01.certiScrExist }}</td>
                            <td align="center" valign="middle">{{ formY01.certiScrName }}</td>
                        </tr>
                        <tr>
                            <td align="center" valign="middle">3</td>
                            <td align="center" valign="middle">图像文件</td>
                            <td align="center" valign="middle">钻孔位置图截图</td>
                            <td align="center" valign="middle">{{ formY01.drillPosExist }}</td>
                            <td align="center" valign="middle">{{ formY01.drillPosName }}</td>
                        </tr>
                        <tr>
                            <td align="center" valign="middle">4</td>
                            <td align="center" valign="middle">图像文件</td>
                            <td align="center" valign="middle">综合柱状图截图</td>
                            <td align="center" valign="middle">{{ formY01.comHisExist }}</td>
                            <td align="center" valign="middle">{{ formY01.comHisName }}</td>
                        </tr>

                        <tr>
                            <td align="center" valign="middle">5</td>
                            <td align="center" valign="middle">图像文件</td>
                            <td align="center" valign="middle">施工照片截图</td>
                            <td align="center" valign="middle">{{ formY01.strucPhoExist }}</td>
                            <td align="center" valign="middle">{{ formY01.strucPhoName }}</td>
                        </tr>
                        <tr>
                            <td align="center" valign="middle">6</td>
                            <td align="center" valign="middle">图像文件</td>
                            <td align="center" valign="middle">土工试验参数截图</td>
                            <td align="center" valign="middle">{{ formY01.geoTeParaExist }}</td>
                            <td align="center" valign="middle">{{ formY01.geoTeParaName }}</td>
                        </tr>
                        <tr>
                            <td align="center" valign="middle">7</td>
                            <td align="center" valign="middle">图像文件</td>
                            <td align="center" valign="middle">衰减关系说明截图</td>
                            <td align="center" valign="middle">{{ formY01.attRelDesExist }}</td>
                            <td align="center" valign="middle">{{ formY01.attRelDesName }}</td>
                        </tr>
                        <tr>
                            <td align="center" valign="middle">8</td>
                            <td align="center" valign="middle">图像文件</td>
                            <td align="center" valign="middle">土层地震反应谱截图</td>
                            <td align="center" valign="middle">{{ formY01.soilLayReaExist }}</td>
                            <td align="center" valign="middle">{{ formY01.soilLayReaName }}</td>
                        </tr>
                        <tr>
                            <td align="center" valign="middle">9</td>
                            <td align="center" valign="middle">图像文件</td>
                            <td align="center" valign="middle">场地地震动参数规准谱方法截图</td>
                            <td align="center" valign="middle">{{ formY01.caliSpeMethExist }}</td>
                            <td align="center" valign="middle">{{ formY01.caliSpeMethName }}</td>
                        </tr>
                        <tr>
                            <td align="center" valign="middle">10</td>
                            <td align="center" valign="middle">图像文件</td>
                            <td align="center" valign="middle">场地地震动参数规准谱截图</td>
                            <td align="center" valign="middle">{{ formY01.caliSpeExist }}</td>
                            <td align="center" valign="middle">{{ formY01.caliSpeName }}</td>
                        </tr>
                    </table>
                    <p></p>
                    <table align="center" style="width: 100%;border-collapse: collapse;">
                        <tr>
                            <th align="center" colspan="5">单孔标准化数据</th>
                        </tr>
                        <tr>
                            <td style="width: 150px;" align="center" valign="middle">序号</td>
                            <td align="center" valign="middle">信息页面顺序号</td>
                            <td align="center" valign="middle">信息项</td>
                            <td align="center" valign="middle">是否存在</td>
                            <td align="center" valign="middle">备注</td>
                        </tr>
                        <tr>
                            <td align="center" valign="middle">1</td>
                            <td align="center" valign="middle">Y01</td>
                            <td align="center" valign="middle">单孔标准化数据总览</td>
                            <td align="center" valign="middle">{{ formY01_2.y01Exist }}</td>
                            <td align="center" valign="middle">{{ formY01_2.y01Note }}</td>
                        </tr>
                        <tr>
                            <td align="center" valign="middle">2</td>
                            <td align="center" valign="middle">Y02</td>
                            <td align="center" valign="middle">成孔信息</td>
                            <td align="center" valign="middle">{{ formY01_2.y02Exist }}</td>
                            <td align="center" valign="middle">{{ formY01_2.y02Note }}</td>
                        </tr>
                        <tr>
                            <td align="center" valign="middle">3</td>
                            <td align="center" valign="middle">Y03</td>
                            <td align="center" valign="middle">审查或备案信息</td>
                            <td align="center" valign="middle">{{ formY01_2.y03Exist }}</td>
                            <td align="center" valign="middle">{{ formY01_2.y03Note }}</td>
                        </tr>
                        <tr>
                            <td align="center" valign="middle">4</td>
                            <td align="center" valign="middle">Y04</td>
                            <td align="center" valign="middle">地层岩性分层</td>
                            <td align="center" valign="middle">{{ formY01_2.y04Exist }}</td>
                            <td align="center" valign="middle">{{ formY01_2.y04Note }}</td>
                        </tr>

                        <tr>
                            <td align="center" valign="middle">5</td>
                            <td align="center" valign="middle">Y05</td>
                            <td align="center" valign="middle">标贯值</td>
                            <td align="center" valign="middle">{{ formY01_2.y05Exist }}</td>
                            <td align="center" valign="middle">{{ formY01_2.y05Note }}</td>
                        </tr>
                        <tr>
                            <td align="center" valign="middle">6</td>
                            <td align="center" valign="middle">Y06</td>
                            <td align="center" valign="middle">剪切波实测值</td>
                            <td align="center" valign="middle">{{ formY01_2.y06Exist }}</td>
                            <td align="center" valign="middle">{{ formY01_2.y06Note }}</td>
                        </tr>
                        <tr>
                            <td align="center" valign="middle">7</td>
                            <td align="center" valign="middle">Y07</td>
                            <td align="center" valign="middle">纵波实测值</td>
                            <td align="center" valign="middle">{{ formY01_2.y07Exist }}</td>
                            <td align="center" valign="middle">{{ formY01_2.y07Note }}</td>
                        </tr>
                        <tr>
                            <td align="center" valign="middle">8</td>
                            <td align="center" valign="middle">Y08</td>
                            <td align="center" valign="middle">土动力试验参数</td>
                            <td align="center" valign="middle">{{ formY01_2.y08Exist }}</td>
                            <td align="center" valign="middle">{{ formY01_2.y08Note }}</td>
                        </tr>
                        <tr>
                            <td align="center" valign="middle">9</td>
                            <td align="center" valign="middle">Y09</td>
                            <td align="center" valign="middle">土动力试验参数说明</td>
                            <td align="center" valign="middle">{{ formY01_2.y09Exist }}</td>
                            <td align="center" valign="middle">{{ formY01_2.y09Note }}</td>
                        </tr>
                        <tr>
                            <td align="center" valign="middle">10</td>
                            <td align="center" valign="middle">Y10</td>
                            <td align="center" valign="middle">土工试验参数</td>
                            <td align="center" valign="middle">{{ formY01_2.y10Exist }}</td>
                            <td align="center" valign="middle">{{ formY01_2.y10Note }}</td>
                        </tr>
                        <tr>
                            <td align="center" valign="middle">11</td>
                            <td align="center" valign="middle">Y11</td>
                            <td align="center" valign="middle">土工试验参数说明</td>
                            <td align="center" valign="middle">{{ formY01_2.y11Exist }}</td>
                            <td align="center" valign="middle">{{ formY01_2.y11Note }}</td>
                        </tr>
                        <tr>
                            <td align="center" valign="middle">12</td>
                            <td align="center" valign="middle">Y12</td>
                            <td align="center" valign="middle">钻孔所在场地地震危险性</td>
                            <td align="center" valign="middle">{{ formY01_2.y12Exist }}</td>
                            <td align="center" valign="middle">{{ formY01_2.y12Note }}</td>
                        </tr>
                        <tr>
                            <td align="center" valign="middle">13</td>
                            <td align="center" valign="middle">Y13</td>
                            <td align="center" valign="middle">基岩反应谱</td>
                            <td align="center" valign="middle">{{ formY01_2.y13Exist }}</td>
                            <td align="center" valign="middle">{{ formY01_2.y13Note }}</td>
                        </tr>
                        <tr>
                            <td align="center" valign="middle">14</td>
                            <td align="center" valign="middle">Y14</td>
                            <td align="center" valign="middle">人造波包络函数</td>
                            <td align="center" valign="middle">{{ formY01_2.y14Exist }}</td>
                            <td align="center" valign="middle">{{ formY01_2.y14Note }}</td>
                        </tr>
                        <tr>
                            <td align="center" valign="middle">15</td>
                            <td align="center" valign="middle">Y15</td>
                            <td align="center" valign="middle">土层地震反应计算模型</td>
                            <td align="center" valign="middle">{{ formY01_2.y15Exist }}</td>
                            <td align="center" valign="middle">{{ formY01_2.y15Note }}</td>
                        </tr>
                        <tr>
                            <td align="center" valign="middle">16</td>
                            <td align="center" valign="middle">Y16</td>
                            <td align="center" valign="middle">土层地震反应规准谱</td>
                            <td align="center" valign="middle">{{ formY01_2.y16Exist }}</td>
                            <td align="center" valign="middle">{{ formY01_2.y16Note }}</td>
                        </tr>
                        <tr>
                            <td align="center" valign="middle">17</td>
                            <td align="center" valign="middle">Y17</td>
                            <td align="center" valign="middle">场地地震动基本参数</td>
                            <td align="center" valign="middle">{{ formY01_2.y17Exist }}</td>
                            <td align="center" valign="middle">{{ formY01_2.y17Note }}</td>
                        </tr>
                        <tr>
                            <td align="center" valign="middle">18</td>
                            <td align="center" valign="middle">Y18</td>
                            <td align="center" valign="middle">场地类别</td>
                            <td align="center" valign="middle">{{ formY01_2.y18Exist }}</td>
                            <td align="center" valign="middle">{{ formY01_2.y18Note }}</td>
                        </tr>
                    </table>
                </el-tab-pane>
                <el-tab-pane label="Y02成孔信息" name="Y02">
                    <el-form ref="ruleForm" :model="formY02" :rules="rules" label-width="150px">
                        <el-form-item label="钻孔综合编号" prop="drillSynthesizeCode">
                            <el-input v-model="formY02.drillSynthesizeCode" placeholder="" disabled />
                        </el-form-item>
                        <el-form-item label="钻孔依托的项目报告" prop="drillDependProject">
                            <el-input v-model="formY02.drillDependProject" placeholder="" disabled />
                        </el-form-item>
                        <el-form-item label="项目完成单位" prop="projectCompleteInstitution">
                            <el-input v-model="formY02.projectCompleteInstitution" placeholder="" disabled />
                        </el-form-item>
                        <el-form-item label="项目完成时间" prop="projectCompleteDate">
                            <el-input v-model="formY02.projectCompleteDate" placeholder="" disabled />
                        </el-form-item>
                        <el-form-item label="项目负责人" prop="projectPrincipal">
                            <el-input v-model="formY02.projectPrincipal" placeholder="" disabled />
                        </el-form-item>
                        <el-form-item label="钻孔勘察单位" prop="drillConstructionInstitution">
                            <el-input v-model="formY02.drillConstructionInstitution" placeholder="" disabled />
                        </el-form-item>
                        <el-form-item label="钻孔勘察负责人" prop="drillConstructionPrincipal">
                            <el-input v-model="formY02.drillConstructionPrincipal" placeholder="" disabled />
                        </el-form-item>
                        <el-form-item label="勘察施工日期" prop="constructionStartDate">
                            <el-input v-model="formY02.constructionStartDate" placeholder="" disabled />
                        </el-form-item>
                        <el-form-item label="勘察报告日期" prop="constructionReportDate">
                            <el-input v-model="formY02.constructionReportDate" placeholder="" disabled />
                        </el-form-item>
                        <el-form-item label="钻孔编号" prop="drillCode">
                            <el-input v-model="formY02.drillCode" placeholder="" disabled />
                        </el-form-item>
                        <el-form-item label="孔口记录坐标X轴" prop="drillX">
                            <el-input v-model="formY02.drillX" placeholder="" disabled />
                        </el-form-item>
                        <el-form-item label="孔口记录坐标Y轴" prop="drillY">
                            <el-input v-model="formY02.drillY" placeholder="" disabled />
                        </el-form-item>
                        <el-form-item label="孔位经度（°）" prop="longitude">
                            <el-input v-model="formY02.longitude" placeholder="" disabled />
                        </el-form-item>
                        <el-form-item label="孔位纬度（°）" prop="latitude">
                            <el-input v-model="formY02.latitude" placeholder="" disabled />
                        </el-form-item>
                        <el-form-item label="钻孔深度（m）" prop="drillDepth">
                            <el-input v-model="formY02.drillDepth" placeholder="" disabled />
                        </el-form-item>
                        <el-form-item label="地面高程（m）" prop="elevation">
                            <el-input v-model="formY02.elevation" placeholder="" disabled />
                        </el-form-item>
                        <el-form-item label="稳定水位深度（m）" prop="stableWaterDepth">
                            <el-input v-model="formY02.stableWaterDepth" placeholder="" disabled />
                        </el-form-item>
                        <el-form-item label="坐标系说明" prop="coordinatesDeclare">
                            <el-input v-model="formY02.coordinatesDeclare" placeholder="" disabled />
                        </el-form-item>
                        <el-form-item label="高程系说明" prop="elevationDeclare">
                            <el-input v-model="formY02.elevationDeclare" placeholder="" disabled />
                        </el-form-item>
                        <el-form-item label="钻孔所在省级行政区" prop="province">
                            <el-input v-model="formY02.province" placeholder="" disabled />
                        </el-form-item>
                        <el-form-item label="钻孔所在地市级行政区" prop="city">
                            <el-input v-model="formY02.city" placeholder="" disabled />
                        </el-form-item>
                        <el-form-item label="钻孔所在县级行政区" prop="district">
                            <el-input v-model="formY02.district" placeholder="" disabled />
                        </el-form-item>
                        <el-form-item label="钻孔所在乡级行政区" prop="village">
                            <el-input v-model="formY02.village" placeholder="" disabled />
                        </el-form-item>
                        <el-form-item label="钻孔说明备注" prop="drillRemark">
                            <el-input v-model="formY02.drillRemark" placeholder="" disabled />
                        </el-form-item>
                    </el-form>
                </el-tab-pane>
                <el-tab-pane label="Y03审查或备案信息" name="Y03">
                    <el-form ref="ruleForm" :model="formY03" :rules="rules" label-width="150px">
                        <el-form-item label="项目是否经技术审查" prop="isExamination">
                            <el-input v-model="formY03.isExamination" placeholder="" disabled />
                        </el-form-item>
                        <el-form-item label="技术审查机构名称" prop="examinationName">
                            <el-input v-model="formY03.examinationName" placeholder="" disabled />
                        </el-form-item>
                        <el-form-item label="技术审查通过日期" prop="examinationDate">
                            <el-input v-model="formY03.examinationDate" placeholder="" disabled />
                        </el-form-item>
                        <el-form-item label="技术审查机构是否为中国地震局" prop="esZgdzj">
                            <el-input v-model="formY03.esZgdzj" placeholder="" disabled />
                        </el-form-item>
                        <el-form-item label="技术审查机构是否为省级地震局" prop="isSjdzj">
                            <el-input v-model="formY03.isSjdzj" placeholder="" disabled />
                        </el-form-item>
                        <el-form-item label="技术审查机构是否为一级第三方机构" prop="is3party1">
                            <el-input v-model="formY03.is3party1" placeholder="" disabled />
                        </el-form-item>
                        <el-form-item label="技术审查机构是否为二级第三方机构" prop="is3party2">
                            <el-input v-model="formY03.is3party2" placeholder="" disabled />
                        </el-form-item>
                        <el-form-item label="技术审查机构是否为其他行业主管单位" prop="isCompetentUnit">
                            <el-input v-model="formY03.isCompetentUnit" placeholder="" disabled />
                        </el-form-item>
                        <el-form-item label="技术审查机构是否为其他机构" prop="isOtherInstitution">
                            <el-input v-model="formY03.isOtherInstitution" placeholder="" disabled />
                        </el-form-item>
                        <el-form-item label="项目是否经备案" prop="isFilings">
                            <el-input v-model="formY03.isFilings" placeholder="" disabled />
                        </el-form-item>
                        <el-form-item label="成果备案机构名称" prop="filingsName">
                            <el-input v-model="formY03.filingsName" placeholder="" disabled />
                        </el-form-item>
                        <el-form-item label="成果备案日期" prop="filingsDate">
                            <el-input v-model="formY03.filingsDate" placeholder="" disabled />
                        </el-form-item>
                        <el-form-item label="成果备案机构是否为中国地震局" prop="isFilingsZgdzj">
                            <el-input v-model="formY03.isFilingsZgdzj" placeholder="" disabled />
                        </el-form-item>
                        <el-form-item label="成果备案机构是否为省级地震局" prop="isFilingsSjdzj">
                            <el-input v-model="formY03.isFilingsSjdzj" placeholder="" disabled />
                        </el-form-item>
                        <el-form-item label="成果备案机构是否为一级第三方机构" prop="isFilings3party1">
                            <el-input v-model="formY03.isFilings3party1" placeholder="" disabled />
                        </el-form-item>
                        <el-form-item label="成果备案机构是否为二级第三方机构" prop="isFilings3party2">
                            <el-input v-model="formY03.isFilings3party2" placeholder="" disabled />
                        </el-form-item>
                        <el-form-item label="成果备案机构是否为其他行业主管单位" prop="isFCompetentUnit">
                            <el-input v-model="formY03.isFCompetentUnit" placeholder="" disabled />
                        </el-form-item>
                        <el-form-item label="成果备案机构是否为其他机构" prop="isFOtherInstitution">
                            <el-input v-model="formY03.isFOtherInstitution" placeholder="" disabled />
                        </el-form-item>

                    </el-form>
                </el-tab-pane>
                <el-tab-pane label="Y04地层岩性分层" name="Y04">
                    <el-table v-loading="loading" ref="tableRef" :data="dataListY04" stripe
                        @selection-change="handleSelectionChange" row-key="id">
                        <el-table-column label="地层序号" align="center" prop="assiseNumber" />
                        <el-table-column label="地层编号" align="center" prop="assiseCode" />
                        <el-table-column label="地层年代" align="center" prop="formationAge" />
                        <el-table-column label="时代成因" align="center" prop="causeAge" />
                        <el-table-column label="层底深度（m）" align="center" prop="bottomDepth" />
                        <el-table-column label="分层厚度（m）" align="center" prop="layerThickness" />
                        <el-table-column label="岩土名称" align="center" prop="geotechnicalName" />
                        <el-table-column label="岩土特征" align="center" prop="geotechnicalCharacteristics" />
                    </el-table>

                    <!--<pagination v-show="total > 0" :total="total" v-model:page="queryParams.page" v-model:limit="queryParams.rows" @pagination="getList" />-->
                </el-tab-pane>
                <el-tab-pane label="Y05标贯值" name="Y05">
                    <el-table v-loading="loading" ref="tableRef" :data="dataListY05" stripe
                        @selection-change="handleSelectionChange" row-key="id">
                        <el-table-column label="起始标贯深度(m)" align="center" prop="standardStartDepth" />
                        <el-table-column label="结束标贯深度(m)" align="center" prop="standardEndDepth" />
                        <el-table-column label="标贯值" align="center" prop="standardNumber" />
                    </el-table>

                    <!--<pagination v-show="total > 0" :total="total" v-model:page="queryParams.page" v-model:limit="queryParams.rows" @pagination="getList" />-->
                </el-tab-pane>
                <el-tab-pane label="Y06剪切波实测值" name="Y06">
                    <el-table v-loading="loading" ref="tableRef" :data="dataListY06" stripe
                        @selection-change="handleSelectionChange" row-key="id">
                        <el-table-column label="序号" align="center" prop="code" />
                        <el-table-column label="岩土性名称" align="center" prop="geotechnicalDesignation" />
                        <el-table-column label="层底深度 (m)" align="center" prop="bottomDepth" />
                        <el-table-column label="层厚(m)" align="center" prop="layerThickness" />
                        <el-table-column label="剪切波波速V(m/s)" align="center" prop="shearWaveVelocity" />
                    </el-table>

                    <!--<pagination v-show="total > 0" :total="total" v-model:page="queryParams.page" v-model:limit="queryParams.rows" @pagination="getList" />-->
                </el-tab-pane>
                <el-tab-pane label="Y07纵波实测值" name="Y07">
                    <el-table v-loading="loading" ref="tableRef" :data="dataListY07" stripe
                        @selection-change="handleSelectionChange" row-key="id">
                        <el-table-column label="序号" align="center" prop="code" />
                        <el-table-column label="岩土性名称" align="center" prop="geotechnicalDesignation" />
                        <el-table-column label="层底深度 (m)" align="center" prop="bottomDepth" />
                        <el-table-column label="层厚(m)" align="center" prop="layerThickness" />
                        <el-table-column label="纵波波速V(m/s)" align="center" prop="primaryWaveVelocity" />
                    </el-table>

                    <!-- <pagination v-show="total > 0" :total="total" v-model:page="queryParams.page" v-model:limit="queryParams.rows" @pagination="getList" /> -->
                </el-tab-pane>
                <el-tab-pane label="Y08土动力试验参数" name="Y08">
                    <el-table v-loading="loading" ref="tableRef" :data="dataListY08" stripe
                        @selection-change="handleSelectionChange" row-key="id">
                        <el-table-column label="土类序号" align="center" prop="code" />
                        <el-table-column label="样品编号" align="center" prop="specimenCode" />
                        <el-table-column label="取样深度顶点(m)" align="center" prop="specimenStartDepth" />
                        <el-table-column label="取样深度底点(m)" align="center" prop="specimenEndDepth" />
                        <el-table-column label="土层名称" align="center" prop="soilName" />
                        <el-table-column label="密度(kg/m3)" align="center" prop="naturalDensity" />
                        <el-table-column label="模量比(G/Gmax)剪应变(γ)（10-4×0.05)" align="center" prop="modulusShearStrain005" />
                        <el-table-column label="模量比(G/Gmax)剪应变(γ)（10-4×0.10)" align="center" prop="modulusShearStrain010" />
                        <el-table-column label="模量比(G/Gmax)剪应变(γ)（10-4×0.50)" align="center" prop="modulusShearStrain050" />
                        <el-table-column label="模量比(G/Gmax)剪应变(γ)（10-4×1.00)" align="center" prop="modulusShearStrain100" />
                        <el-table-column label="模量比(G/Gmax)剪应变(γ)（10-4×5.00)" align="center" prop="modulusShearStrain500" />
                        <el-table-column label="模量比(G/Gmax)剪应变(γ)（10-4×10.00)" align="center"
                            prop="modulusShearStrain1000" />
                        <el-table-column label="模量比(G/Gmax)剪应变(γ)（10-4×50.00)" align="center"
                            prop="modulusShearStrain5000" />
                        <el-table-column label="模量比(G/Gmax)剪应变(γ)（10-4×100.00)" align="center"
                            prop="modulusShearStrain10000" />
                        <el-table-column label="阻尼比(λ)剪应变(γ)（10-4×0.05)" align="center" prop="dampShearStrain005" />
                        <el-table-column label="阻尼比(λ)剪应变(γ)（10-4×0.10)" align="center" prop="dampShearStrain010" />
                        <el-table-column label="阻尼比(λ)剪应变(γ)（10-4×0.50)" align="center" prop="dampShearStrain050" />
                        <el-table-column label="阻尼比(λ)剪应变(γ)（10-4×1.00)" align="center" prop="dampShearStrain100" />
                        <el-table-column label="阻尼比(λ)剪应变(γ)（10-4×5.00)" align="center" prop="dampShearStrain500" />
                        <el-table-column label="阻尼比(λ)剪应变(γ)（10-4×10.00)" align="center" prop="dampShearStrain1000" />
                        <el-table-column label="阻尼比(λ)剪应变(γ)（10-4×50.00)" align="center" prop="dampShearStrain5000" />
                        <el-table-column label="阻尼比(λ)剪应变(γ)（10-4×100.00)" align="center" prop="dampShearStrain10000" />
                    </el-table>

                    <!-- <pagination v-show="total > 0" :total="total" v-model:page="queryParams.page"
                        v-model:limit="queryParams.rows" @pagination="getList" /> -->
                </el-tab-pane>
                <el-tab-pane label="Y09土动力试验参数说明" name="Y09">
                    <el-form ref="ruleForm" :model="formY09" :rules="rules" label-width="150px">
                        <el-form-item label="完成单位" prop="completedUnit">
                            <el-input v-model="formY09.completedUnit" placeholder="" disabled />
                        </el-form-item>
                        <el-form-item label="完成日期" prop="completedDate">
                            <el-input v-model="formY09.completedDate" placeholder="" disabled />
                        </el-form-item>
                        <el-form-item label="数据来源" prop="dataSources">
                            <el-input v-model="formY09.dataSources" placeholder="数据提供的部门、单位名称、下载的途径、来源网站等" disabled />
                        </el-form-item>
                    </el-form>
                </el-tab-pane>
                <el-tab-pane label="Y10土工试验参数" name="Y10">
                    <el-table v-loading="loading" ref="tableRef" :data="dataListY10" stripe
                        @selection-change="handleSelectionChange" row-key="id">
                        <el-table-column label="室内土样编号" align="center" prop="indoorDustCode"></el-table-column>
                        <el-table-column label="野外土样编号" align="center" prop="fieldDustCode"></el-table-column>
                        <el-table-column label="取土顶部深度" align="center">
                            <el-table-column label="m" align="center" prop="indoorTopDepth"></el-table-column>
                        </el-table-column>
                        <el-table-column label="取土底部深度" align="center">
                            <el-table-column label="m" align="center" prop="indoorBottomDepth"></el-table-column>
                        </el-table-column>
                        <el-table-column label="颗粒百分比%" align="center">
                            <el-table-column label="石" align="center">
                                <el-table-column label=">20" align="center">
                                    <el-table-column label="mm" align="center" prop="particleStone20"></el-table-column>
                                </el-table-column>
                            </el-table-column>
                            <el-table-column label="砾" align="center">
                                <el-table-column label="20~2" align="center">
                                    <el-table-column label="mm" align="center" prop="particleGravel2"></el-table-column>
                                </el-table-column>
                            </el-table-column>
                            <el-table-column label="砂粒" align="center">
                                <el-table-column label="2~0.5" align="center">
                                    <el-table-column label="mm" align="center" prop="particleSand05"></el-table-column>
                                </el-table-column>
                                <el-table-column label="0.5~0.25" align="center">
                                    <el-table-column label="mm" align="center" prop="particleSand25"></el-table-column>
                                </el-table-column>
                                <el-table-column label="0.25~0.075" align="center">
                                    <el-table-column label="mm" align="center" prop="particleSand75"></el-table-column>
                                </el-table-column>

                            </el-table-column>
                            <el-table-column label="粉粒" align="center">
                                <el-table-column label="0.075~0.005" align="center">
                                    <el-table-column label="mm" align="center" prop="particleFarina005"></el-table-column>
                                </el-table-column>
                            </el-table-column>
                            <el-table-column label="粘粒" align="center">
                                <el-table-column label="<0.005" align="center">
                                    <el-table-column label="mm" align="center" prop="particleCosmid005"></el-table-column>
                                </el-table-column>
                            </el-table-column>

                        </el-table-column>
                        <el-table-column label="不均匀系数" align="center">
                            <el-table-column label="Cu" align="center">
                                <el-table-column label="" align="center" prop="nonuniformCoefficient"></el-table-column>
                            </el-table-column>
                        </el-table-column>
                        <el-table-column label="曲率系数" align="center">
                            <el-table-column label="Cc" align="center">
                                <el-table-column label="" align="center" prop="curvatureCoefficient"></el-table-column>
                            </el-table-column>
                        </el-table-column>
                        <el-table-column label="含水率" align="center">
                            <el-table-column label="W" align="center">
                                <el-table-column label="%" align="center" prop="moistureContent"></el-table-column>
                            </el-table-column>
                        </el-table-column>
                        <el-table-column label="密度" align="center">
                            <el-table-column label="ρ" align="center">
                                <el-table-column label="g/cm3" align="center" prop="density"></el-table-column>
                            </el-table-column>
                        </el-table-column>
                        <el-table-column label="干密度" align="center">
                            <el-table-column label="ρd" align="center">
                                <el-table-column label="g/cm3" align="center" prop="dryDensity"></el-table-column>
                            </el-table-column>
                        </el-table-column>
                        <el-table-column label="比重" align="center">
                            <el-table-column label="Gs" align="center">
                                <el-table-column label="" align="center" prop="proportion"></el-table-column>
                            </el-table-column>
                        </el-table-column>
                        <el-table-column label="孔隙比" align="center">
                            <el-table-column label="e0" align="center">
                                <el-table-column label="" align="center" prop="voidRatio"></el-table-column>
                            </el-table-column>
                        </el-table-column>
                        <el-table-column label="饱和度" align="center">
                            <el-table-column label="Sr" align="center">
                                <el-table-column label="%" align="center" prop="saturation"></el-table-column>
                            </el-table-column>
                        </el-table-column>
                        <el-table-column label="液限" align="center">
                            <el-table-column label="WL" align="center">
                                <el-table-column label="%" align="center" prop="liquidLimit"></el-table-column>
                            </el-table-column>
                        </el-table-column>
                        <el-table-column label="塑限" align="center">
                            <el-table-column label="WP" align="center">
                                <el-table-column label="%" align="center" prop="plasticLimit"></el-table-column>
                            </el-table-column>
                        </el-table-column>
                        <el-table-column label="塑性指数" align="center">
                            <el-table-column label="WP" align="center">
                                <el-table-column label="" align="center" prop="plasticityIndex"></el-table-column>
                            </el-table-column>
                        </el-table-column>
                        <el-table-column label="液性指数" align="center">
                            <el-table-column label="IL" align="center">
                                <el-table-column label="" align="center" prop="liquidityIndex"></el-table-column>
                            </el-table-column>
                        </el-table-column>
                        <el-table-column label="压缩系数" align="center">
                            <el-table-column label="0.1-0.2" align="center">
                                <el-table-column label="MPa-1" align="center"
                                    prop="compressibilityFactor02"></el-table-column>
                            </el-table-column>
                            <el-table-column label="0.2-0.3" align="center">
                                <el-table-column label="MPa-1" align="center"
                                    prop="compressibilityFactor03"></el-table-column>
                            </el-table-column>
                            <el-table-column label="0.3-0.4" align="center">
                                <el-table-column label="MPa-1" align="center"
                                    prop="compressibilityFactor04"></el-table-column>
                            </el-table-column>
                        </el-table-column>
                        <el-table-column label="压缩模量" align="center">
                            <el-table-column label="0.1-0.2" align="center">
                                <el-table-column label="MPa" align="center" prop="compressiveModulus02"></el-table-column>
                            </el-table-column>
                            <el-table-column label="0.2-0.3" align="center">
                                <el-table-column label="MPa" align="center" prop="compressiveModulus03"></el-table-column>
                            </el-table-column>
                            <el-table-column label="0.3-0.4" align="center">
                                <el-table-column label="MPa" align="center" prop="compressiveModulus04"></el-table-column>
                            </el-table-column>
                        </el-table-column>
                        <el-table-column label="快剪" align="center">
                            <el-table-column label="粘聚力" align="center">
                                <el-table-column label="Cq" align="center">
                                    <el-table-column label="kPa" align="center" prop="fastShearCohesion"></el-table-column>
                                </el-table-column>
                            </el-table-column>
                            <el-table-column label="内摩擦角" align="center">
                                <el-table-column label="Фq" align="center">
                                    <el-table-column label="度" align="center" prop="fastShearFriction"></el-table-column>
                                </el-table-column>
                            </el-table-column>
                        </el-table-column>
                        <el-table-column label="岩土分类" align="center" prop="geotechnicalClassification"></el-table-column>
                    </el-table>

                    <!--<pagination v-show="total > 0" :total="total" v-model:page="queryParams.page" v-model:limit="queryParams.rows" @pagination="getList" />-->
                </el-tab-pane>
                <el-tab-pane label="Y11土工试验参数说明" name="Y11">
                    <el-form ref="ruleForm" :model="formY11" :rules="rules" label-width="150px">
                        <el-form-item label="完成单位" prop="completedUnit">
                            <el-input v-model="formY11.completedUnit" placeholder="" disabled />
                        </el-form-item>
                        <el-form-item label="完成时间" prop="completedDate">
                            <el-input v-model="formY11.completedDate" placeholder="" disabled />
                        </el-form-item>
                        <el-form-item label="数据来源" prop="dataSources">
                            <el-input v-model="formY11.dataSources" placeholder="数据提供的部门、单位名称、下载的途径、来源网站等" disabled />
                        </el-form-item>
                    </el-form>
                </el-tab-pane>
                <el-tab-pane label="Y12钻孔所在场地地震危险性" name="Y12">
                    <el-form ref="ruleForm" :model="formY12" :rules="rules" label-width="150px">
                        <el-form-item label="数据来源" prop="dataSources">
                            <el-input v-model="formY12.dataSources" type="textarea" maxlength="500" show-word-limit
                                :autosize="{ minRows: 3, maxRows: 5 }" placeholder="数据提供的部门、单位名称、下载的途径、来源网站等" disabled />
                        </el-form-item>
                        <el-form-item label="潜在震源区划分方案基础" prop="qzzyqhffajc">
                            <el-input v-model="formY12.qzzyqhffajc" type="textarea" maxlength="500" show-word-limit
                                :autosize="{ minRows: 3, maxRows: 5 }" placeholder="请输入潜在震源区划分方案基础" disabled />
                        </el-form-item>
                        <el-form-item label="对基础方案的修订说明" prop="djcfadxdsm">
                            <el-input v-model="formY12.djcfadxdsm" type="textarea" maxlength="500" show-word-limit
                                :autosize="{ minRows: 3, maxRows: 5 }" placeholder="请输入对基础方案的修订说明" disabled />
                        </el-form-item>
                        <el-form-item label="衰减关系方案基础" prop="sjgxfajc">
                            <el-input v-model="formY12.sjgxfajc" type="textarea" maxlength="500" show-word-limit
                                :autosize="{ minRows: 3, maxRows: 5 }" placeholder="请输入衰减关系方案基础" disabled />
                        </el-form-item>
                        <el-form-item label="衰减关系确定方法说明" prop="sjgxqdffsm">
                            <el-input v-model="formY12.sjgxqdffsm" type="textarea" maxlength="500" show-word-limit
                                :autosize="{ minRows: 3, maxRows: 5 }" placeholder="请输入衰减关系确定方法说明" disabled />
                        </el-form-item>
                    </el-form>
                </el-tab-pane>
                <el-tab-pane label="Y13场地基岩反应谱" name="Y13">
                    <el-table v-loading="loading" ref="tableRef" :data="dataListY13" stripe
                        @selection-change="handleSelectionChange" row-key="id">
                        <el-table-column label="常用概率水准" align="center">
                            <el-table-column label="周期（s）" align="center" prop="proLevelCycle"></el-table-column>
                            <el-table-column label="50年63%" align="center" prop="year50ProLevel063"></el-table-column>
                            <el-table-column label="50年10%" align="center" prop="year50ProLevel010"></el-table-column>
                            <el-table-column label="50年5%" align="center" prop="year50ProLevel050"></el-table-column>
                            <el-table-column label="50年3%" align="center" prop="year50ProLevel003"></el-table-column>
                            <el-table-column label="50年2.5%" align="center" prop="year50ProLevel0025"></el-table-column>
                            <el-table-column label="50年2%" align="center" prop="year50ProLevel002"></el-table-column>
                            <el-table-column label="50年1%" align="center" prop="year50ProLevel001"></el-table-column>
                            <el-table-column label="70年63%" align="center" prop="year70ProLevel063"></el-table-column>
                            <el-table-column label="70年10%" align="center" prop="year70ProLevel010"></el-table-column>
                            <el-table-column label="70年5%" align="center" prop="year70ProLevel050"></el-table-column>
                            <el-table-column label="70年3%" align="center" prop="year70ProLevel003"></el-table-column>
                            <el-table-column label="70年2.5%" align="center" prop="year70ProLevel0025"></el-table-column>
                            <el-table-column label="70年2%" align="center" prop="year70ProLevel002"></el-table-column>
                            <el-table-column label="70年1%" align="center" prop="year70ProLevel001"></el-table-column>
                            <el-table-column label="100年63%" align="center" prop="year100ProLevel063"></el-table-column>
                            <el-table-column label="100年10%" align="center" prop="year100ProLevel010"></el-table-column>
                            <el-table-column label="100年5%" align="center" prop="year100ProLevel050"></el-table-column>
                            <el-table-column label="100年3%" align="center" prop="year100ProLevel003"></el-table-column>
                            <el-table-column label="100年2.5%" align="center" prop="year100ProLevel0025"></el-table-column>
                            <el-table-column label="100年2%" align="center" prop="year100ProLevel002"></el-table-column>
                            <el-table-column label="100年1%" align="center" prop="year100ProLevel001"></el-table-column>
                        </el-table-column>
                        <el-table-column label="其他概率水准" align="center">
                            <el-table-column label="" align="center" prop="otherProLevel"></el-table-column>

                        </el-table-column>
                    </el-table>

                    <!-- <pagination v-show="total > 0" :total="total" v-model:page="queryParams.page"
                        v-model:limit="queryParams.rows" @pagination="getList" /> -->
                </el-tab-pane>
                <el-tab-pane label="Y14人造波包络函数" name="Y14">
                    <table align="center" style="width: 100%;border-collapse: collapse;">
                        <tr>
                            <td style="width: 150px;" align="center" valign="middle"></td>
                            <td align="center" valign="middle">超越概率</td>
                            <td align="center" valign="middle">t1 (s)</td>
                            <td align="center" valign="middle">t2 (s)</td>
                            <td align="center" valign="middle">c</td>
                        </tr>
                        <tr>
                            <td align="center" valign="middle" rowspan="21">常用概率水准</td>
                            <td align="center" valign="middle">50年63%</td>
                            <td align="center" valign="middle">{{ formY14.t1Year50ProLevel063 }}</td>
                            <td align="center" valign="middle">{{ formY14.t2Year50ProLevel063 }}</td>
                            <td align="center" valign="middle">{{ formY14.cYear50ProLevel063 }}</td>
                        </tr>
                        <tr>
                            <td align="center" valign="middle">50年10%</td>
                            <td align="center" valign="middle">{{ formY14.t1Year50ProLevel010 }}</td>
                            <td align="center" valign="middle">{{ formY14.t2Year50ProLevel010 }}</td>
                            <td align="center" valign="middle">{{ formY14.cYear50ProLevel010 }}</td>
                        </tr>
                        <tr>
                            <td align="center" valign="middle">50年5%</td>
                            <td align="center" valign="middle">{{ formY14.t1Year50ProLevel050 }}</td>
                            <td align="center" valign="middle">{{ formY14.t2Year50ProLevel050 }}</td>
                            <td align="center" valign="middle">{{ formY14.cYear50ProLevel050 }}</td>
                        </tr>
                        <tr>
                            <td align="center" valign="middle">50年3%</td>
                            <td align="center" valign="middle">{{ formY14.t1Year50ProLevel003 }}</td>
                            <td align="center" valign="middle">{{ formY14.t2Year50ProLevel003 }}</td>
                            <td align="center" valign="middle">{{ formY14.cYear50ProLevel003 }}</td>
                        </tr>

                        <tr>
                            <td align="center" valign="middle">50年2.5%</td>
                            <td align="center" valign="middle">{{ formY14.t1Year50ProLevel0025 }}</td>
                            <td align="center" valign="middle">{{ formY14.t2Year50ProLevel0025 }}</td>
                            <td align="center" valign="middle">{{ formY14.cYear50ProLevel0025 }}</td>
                        </tr>
                        <tr>
                            <td align="center" valign="middle">50年2%</td>
                            <td align="center" valign="middle">{{ formY14.t1Year50ProLevel002 }}</td>
                            <td align="center" valign="middle">{{ formY14.t2Year50ProLevel002 }}</td>
                            <td align="center" valign="middle">{{ formY14.cYear50ProLevel002 }}</td>
                        </tr>
                        <tr>
                            <td align="center" valign="middle">50年1%</td>
                            <td align="center" valign="middle">{{ formY14.t1Year50ProLevel001 }}</td>
                            <td align="center" valign="middle">{{ formY14.t2Year50ProLevel001 }}</td>
                            <td align="center" valign="middle">{{ formY14.cYear50ProLevel001 }}</td>
                        </tr>
                        <tr>
                            <td align="center" valign="middle">70年63%</td>
                            <td align="center" valign="middle">{{ formY14.t1Year70ProLevel063 }}</td>
                            <td align="center" valign="middle">{{ formY14.t2Year70ProLevel063 }}</td>
                            <td align="center" valign="middle">{{ formY14.cYear70ProLevel063 }}</td>
                        </tr>
                        <tr>
                            <td align="center" valign="middle">70年10%</td>
                            <td align="center" valign="middle">{{ formY14.t1Year70ProLevel010 }}</td>
                            <td align="center" valign="middle">{{ formY14.t2Year70ProLevel010 }}</td>
                            <td align="center" valign="middle">{{ formY14.cYear70ProLevel010 }}</td>
                        </tr>
                        <tr>
                            <td align="center" valign="middle">70年5%</td>
                            <td align="center" valign="middle">{{ formY14.t1Year70ProLevel050 }}</td>
                            <td align="center" valign="middle">{{ formY14.t2Year70ProLevel050 }}</td>
                            <td align="center" valign="middle">{{ formY14.cYear70ProLevel050 }}</td>
                        </tr>
                        <tr>
                            <td align="center" valign="middle">70年3%</td>
                            <td align="center" valign="middle">{{ formY14.t1Year70ProLevel003 }}</td>
                            <td align="center" valign="middle">{{ formY14.t2Year70ProLevel003 }}</td>
                            <td align="center" valign="middle">{{ formY14.cYear70ProLevel003 }}</td>
                        </tr>
                        <tr>
                            <td align="center" valign="middle">70年2.5%</td>
                            <td align="center" valign="middle">{{ formY14.t1Year70ProLevel0025 }}</td>
                            <td align="center" valign="middle">{{ formY14.t2Year70ProLevel0025 }}</td>
                            <td align="center" valign="middle">{{ formY14.cYear70ProLevel0025 }}</td>
                        </tr>
                        <tr>
                            <td align="center" valign="middle">70年2%</td>
                            <td align="center" valign="middle">{{ formY14.t1Year70ProLevel002 }}</td>
                            <td align="center" valign="middle">{{ formY14.t2Year70ProLevel002 }}</td>
                            <td align="center" valign="middle">{{ formY14.cYear70ProLevel002 }}</td>
                        </tr>
                        <tr>
                            <td align="center" valign="middle">70年1%</td>
                            <td align="center" valign="middle">{{ formY14.t1Year70ProLevel001 }}</td>
                            <td align="center" valign="middle">{{ formY14.t2Year70ProLevel001 }}</td>
                            <td align="center" valign="middle">{{ formY14.cYear70ProLevel001 }}</td>
                        </tr>
                        <tr>
                            <td align="center" valign="middle">100年63%</td>
                            <td align="center" valign="middle">{{ formY14.t1Year100ProLevel063 }}</td>
                            <td align="center" valign="middle">{{ formY14.t2Year100ProLevel063 }}</td>
                            <td align="center" valign="middle">{{ formY14.cYear100ProLevel063 }}</td>
                        </tr>
                        <tr>
                            <td align="center" valign="middle">100年10%</td>
                            <td align="center" valign="middle">{{ formY14.t1Year100ProLevel010 }}</td>
                            <td align="center" valign="middle">{{ formY14.t2Year100ProLevel010 }}</td>
                            <td align="center" valign="middle">{{ formY14.cYear100ProLevel010 }}</td>
                        </tr>
                        <tr>
                            <td align="center" valign="middle">100年5%</td>
                            <td align="center" valign="middle">{{ formY14.t1Year100ProLevel050 }}</td>
                            <td align="center" valign="middle">{{ formY14.t2Year100ProLevel050 }}</td>
                            <td align="center" valign="middle">{{ formY14.cYear100ProLevel050 }}</td>
                        </tr>
                        <tr>
                            <td align="center" valign="middle">100年3%</td>
                            <td align="center" valign="middle">{{ formY14.t1Year100ProLevel003 }}</td>
                            <td align="center" valign="middle">{{ formY14.t2Year100ProLevel003 }}</td>
                            <td align="center" valign="middle">{{ formY14.cYear100ProLevel003 }}</td>
                        </tr>
                        <tr>
                            <td align="center" valign="middle">100年2.5%</td>
                            <td align="center" valign="middle">{{ formY14.t1Year100ProLevel0025 }}</td>
                            <td align="center" valign="middle">{{ formY14.t2Year100ProLevel0025 }}</td>
                            <td align="center" valign="middle">{{ formY14.cYear100ProLevel0025 }}</td>
                        </tr>
                        <tr>
                            <td align="center" valign="middle">100年2%</td>
                            <td align="center" valign="middle">{{ formY14.t1Year100ProLevel002 }}</td>
                            <td align="center" valign="middle">{{ formY14.t2Year100ProLevel002 }}</td>
                            <td align="center" valign="middle">{{ formY14.cYear100ProLevel002 }}</td>
                        </tr>
                        <tr>
                            <td align="center" valign="middle">100年1%</td>
                            <td align="center" valign="middle">{{ formY14.t1Year100ProLevel001 }}</td>
                            <td align="center" valign="middle">{{ formY14.t2Year100ProLevel001 }}</td>
                            <td align="center" valign="middle">{{ formY14.cYear100ProLevel001 }}</td>
                        </tr>
                        <tr>
                            <td style="width: 150px;" align="center" valign="middle" rowspan="2">其他概率水准</td>
                            <td align="center" valign="middle">&nbsp;</td>
                            <td align="center" valign="middle">{{ formY14.t1OtherProLevel }}</td>
                            <td align="center" valign="middle">{{ formY14.t2OtherProLevel }}</td>
                            <td align="center" valign="middle">{{ formY14.cOtherProLevel }}</td>
                        </tr>
                    </table>
                </el-tab-pane>
                <el-tab-pane label="Y15土层地震反应计算模型" name="Y15">
                    <el-table v-loading="loading" ref="tableRef" :data="dataListY15" stripe
                        @selection-change="handleSelectionChange" row-key="id">
                        <el-table-column label="土层序号" align="center" prop="versionTime" />
                        <el-table-column label="岩土性质描述" align="center" prop="geotechnicalProperty" />
                        <el-table-column label="层厚(m)" align="center" prop="sliceThickness" />
                        <el-table-column label="土类序号" align="center" prop="soilTypeNo" />
                        <el-table-column label="波速Vs(m/s)" align="center" prop="waveVelocity" />
                    </el-table>

                    <!-- <pagination v-show="total > 0" :total="total" v-model:page="queryParams.page" v-model:limit="queryParams.rows" @pagination="getList" /> -->
                </el-tab-pane>
                <el-tab-pane label="Y16土层地震反应规准谱" name="Y16">
                    <el-table v-loading="loading" ref="tableRef" :data="dataListY16" stripe
                        @selection-change="handleSelectionChange" row-key="id">
                        <el-table-column label="超越概率" align="center" prop="exceedingProbablility" />
                        <el-table-column label="Amax(gal)" align="center" prop="amax" />
                        <el-table-column label="βmax" align="center" prop="beta" />
                        <el-table-column label="αmax" align="center" prop="alfa" />
                        <el-table-column label="T1(s)" align="center" prop="t1" />
                        <el-table-column label="Tg(s)" align="center" prop="tg" />
                        <el-table-column label="T3(s)" align="center" prop="t3" />
                        <el-table-column label="γ" align="center" prop="gamma" />
                    </el-table>

                    <!-- <pagination v-show="total > 0" :total="total" v-model:page="queryParams.page" v-model:limit="queryParams.rows" @pagination="getList" /> -->
                </el-tab-pane>
                <el-tab-pane label="Y17场地地震动基本参数" name="Y17">
                    <el-form ref="ruleForm" :model="formY17" :rules="rules" label-width="150px">
                        <el-form-item label="土层地表地震动峰值加速度(50年10%)(g)" prop="year50GroudAcceleration010">
                            <el-input v-model="formY17.year50GroudAcceleration010" placeholder="" disabled />
                        </el-form-item>
                        <el-form-item label="土层地表地震动特征周期(50年10%)(s)" prop="year50GroudFeaturesPeriod010">
                            <el-input v-model="formY17.year50GroudFeaturesPeriod010" placeholder="" disabled />
                        </el-form-item>
                        <el-form-item label="土层地表地震动峰值加速度(50年2%)(g)" prop="year50GroudAcceleration002">
                            <el-input v-model="formY17.year50GroudAcceleration002" placeholder="" disabled />
                        </el-form-item>
                        <el-form-item label="土层地表地震动特征周期(50年2%)(s)" prop="year50GroudFeaturesPeriod002">
                            <el-input v-model="formY17.year50GroudFeaturesPeriod002" placeholder="" disabled />
                        </el-form-item>
                        <el-form-item label="土层地表地震动峰值加速度(100年2%)(g)" prop="year100GroudAcceleration002">
                            <el-input v-model="formY17.year100GroudAcceleration002" placeholder="" disabled />
                        </el-form-item>
                        <el-form-item label="土层地表地震动特征周期(100年2%)(s)" prop="year100GroudFeaturesPeriod002">
                            <el-input v-model="formY17.year100GroudFeaturesPeriod002" placeholder="" disabled />
                        </el-form-item>
                    </el-form>
                </el-tab-pane>
                <el-tab-pane label="Y18场地类别" name="Y18">
                    <el-form ref="ruleForm" :model="formY18" :rules="rules" label-width="150px">
                        <el-form-item label="场地类别" prop="siteType">
                            <el-input v-model="formY18.siteType" placeholder="" disabled />
                        </el-form-item>
                    </el-form>
                </el-tab-pane>
            </el-tabs>
        </template>
    </div>
</template>


<script setup name="dataView">
import { getProvince, getChildArea } from "@/api/system/division";
import { getAll, getDetail1 } from '@/api/essentialData/dataView.js'
import { getDetail } from '@/api/essentialData/administrativeArea.js'
import { onMounted } from "vue";
const { proxy } = getCurrentInstance();
const route = useRoute();
const isShow = ref(true);
const dataList = ref([]);
const dataTitle = ref([]);
const loading = ref(false);
const total = ref(0);
const provinceData = ref([]); //省
const cityData = ref([]); //市
const areaData = ref([]); //区、县
const activeName = ref('Y01');
const isY02 = ref(route.query.typeCode == 'y02ckxx');
const dataListY04 = ref([]);
const dataListY05 = ref([]);
const dataListY06 = ref([]);
const dataListY07 = ref([]);
const dataListY08 = ref([]);
const dataListY10 = ref([]);
const dataListY13 = ref([]);
const dataListY15 = ref([]);
const dataListY16 = ref([]);

const data = reactive({
    queryParams: {
        page: 1,
        rows: 10,
        showGeom: 0,
        province: undefined,
        city: undefined,
        county: undefined,
        keyword: undefined,
    },
    form: {},
    formY01: {

    },
    formY01_2: {

    },
    formY02: {

    },
    formY03: {

    },
    formY09: {

    },
    formY11: {

    },
    formY12: {

    },
    formY14: {

    },
    formY17: {

    },
    formY18: {

    }
})
const { queryParams, form, formY01, formY01_2, formY02, formY03, formY09, formY11, formY12, formY14, formY17, formY18 } = toRefs(data);

/*切换标签页*/
function handleClick(tab, event) {
    console.log(tab.props.name);
    if (tab.props.name == "Y02") {
        //upload.url = import.meta.env.VITE_APP_BASE_API + "/result/uploadPrefectureResult"
    } else {
        //upload.url = import.meta.env.VITE_APP_BASE_API + "/result/uploadResult"
    }
}

/** 搜索按钮操作 */
function handleQuery() {
    queryParams.value.page = 1;
    getList();
}

/** 重置按钮操作 */
function resetQuery() {
    dataList.value = [];
    proxy.resetForm("queryRef");
    handleQuery();
}

function must(obj) {
    if (obj.columnIndex == 0 || obj.columnIndex == 1) {
        return 'must';
    }
}

/** 导出按钮操作 */
function handleExport() {
    if (!isY02.value) {
        proxy.download('/datacenter/sysDataVersion/exportDataView', { ...route.query }, `数据视图${new Date().getTime()}.xls`)
    } else {
        proxy.download('/datacenter/jcRfcpY02/dataExport2', { ...route.query }, `数据视图${new Date().getTime()}.zip`)
    }
}

/** 查询数据列表 */
function getList() {
    if (isY02.value) {
        getDetail1({ ...queryParams.value, versionCode: route.query.versionCode }).then(res => {
            formY01_2.value = res.data.y01dkbzhsj[0],
                formY01.value = res.data.y01wjxx[0];
            formY02.value = res.data.y02ckxx[0];
            formY03.value = res.data.y03schbaxx[0];
            dataListY04.value = res.data.y04dcyxfc;
            dataListY05.value = res.data.y05bgz;
            dataListY06.value = res.data.y06jqbscz;
            dataListY07.value = res.data.y07zbscz;
            dataListY08.value = res.data.y08tdlsycs;
            formY09.value = res.data.y09tdlsycssm[0];
            dataListY10.value = res.data.y10tgsycs;
            formY11.value = res.data.y11tgsycssm[0];
            formY12.value = res.data.y12zkszcddzwxx[0];
            dataListY13.value = res.data.y13cdjyfyp;
            formY14.value = res.data.y14rzbblhs[0];
            dataListY15.value = res.data.y15tcdzfyjsmx;
            dataListY16.value = res.data.y16tcdzfygzp;
            formY17.value = res.data.y17cddzdjbcs[0];
            formY18.value = res.data.y18cdlb[0];
        })
    } else {
        loading.value = true;
        getAll({ ...queryParams.value, ...route.query }).then(response => {
            loading.value = false;
            dataList.value = response.data.data ? response.data.data : [];
            dataTitle.value = response.data.title ? response.data.title : [];
            total.value = response.data.total;
        });
    }
}

// 下载
function handleDownload(id) {
    location.href = import.meta.env.VITE_APP_BASE_API + "/attachment/downLoadFile?attachId=" + encodeURIComponent(id);
}
// 下载多个
function handleDownloads(list, name) {
    const ids = list.map((item) => item.attachId);
    proxy.download("/attachment/downLoadFilesPost", { attachIds: ids }, `${name}.zip`);
}

/** 获取省列表 */
function getProvinceData() {
    getProvince().then(response => {
        provinceData.value = response.data;
    });
}

function chooseProvince(value) {
    queryParams.value.province = value.name;
    queryParams.value.city = null;
    queryParams.value.county = null;
    cityData.value = [];
    areaData.value = [];
    getChildArea(value.id).then(response => {
        cityData.value = response.data;
    });
}

function chooseCity(value) {
    queryParams.value.city = value.name;
    queryParams.value.county = null;
    areaData.value = [];
    getChildArea(value.id).then(response => {
        areaData.value = response.data;
    });
}
function chooseCounty(value) {
    queryParams.value.county = value.name;
}
getProvinceData();
onMounted(()=>{
    getDetail(route.query.versionCode).then(res=>{
        let dataType = res.data.dataType.includes('/')?res.data.dataType.split('/')[0]:res.data.dataType;
        let isSpatialData = res.data.isSpatialData; // 1 空间 0 非空间
        let spatialDataType = res.data.spatialDataType; // 1 2 3 点线面
        if(isSpatialData==1){
            if(spatialDataType=='2'||spatialDataType=='3'){
                if(dataType=='人口公里格网'||dataType=='经济公里格网'){
                    isShow.value = true;
                }else{
                    isShow.value = false;
                }
            }
        }else{
            if(dataType=='钻孔'||dataType=='震害调查'||dataType=='救灾案例'){
                isShow.value = false;
            }else{
                isShow.value = true;
            }
        }
    })
    getList();
})
</script>

<style scoped lang="scss">
.content {
    padding: 20px 200px;
}

/* :deep(.el-table) td.el-table__cell {
  border-bottom: 1px solid #ebeef5 !important;
  border-right: 1px solid #ebeef5 !important;
} */

.el-table th.must>.cell:before {
    content: '*';
    color: #ff1818;
}

:deep(.el-table thead.is-group th.el-table__cell) {
    border-right: 1px solid #FFFFFF !important;
    border-bottom: 1px solid #FFFFFF !important;
}

.tableBorder {
    table td {
        border: 1px solid #c6c6c6;
    }

    table th {
        border: 1px solid #c6c6c6;
    }
}</style>